import { servicesSmp } from '../createServices';

// // 用户管理
// export const user = {
//   add: (params) => servicesStd.post('/asterism/user/create', { params, isLoading: true }),
//   update: (params) => servicesStd.post('/asterism/user/edit', { params, isLoading: true }),
//   delete: (params) => servicesStd.post('/asterism/user/delete', { params, isLoading: true }),
//   list: (params) => servicesStd.post('/asterism/user/list', { params, isLoading: true }),
//   queryOne: (params) => servicesStd.post('/asterism/user/view', { params, isLoading: true }),
//   login: (params) => servicesStd.post('/asterism/user/login', { withAuth: false, params }),
//   logout: (params) => servicesStd.post('/std/user/logout', { params, isLoading: true }),
//   assignmentView: (params) => servicesStd.post('/asterism/user/view', { params, isLoading: true }),
//   assign: (params) => servicesStd.post('/asterism/assignment/add-assign', { params, isLoading: true }),
//   revoke: (params) => servicesStd.post('/asterism/assignment/revoke-assign', { params, isLoading: true }),
//   updateInfo: (params) => servicesStd.post('/asterism/user/update-user-info', { params, isLoading: true }),
//   info: (params) => servicesStd.post('/asterism/user/current-user-view', { params, isLoading: true }),
//   changePwd: (params) => servicesStd.post('/asterism/user/change-password', { params, isLoading: true }),
//   changeDept: (params) => servicesStd.post('/asterism/user/set-current-user-dept-id', { params, isLoading: true }),
//   singleLogin: (params) => servicesStd.post('/asterism/open/single-login', { params, isLoading: true }),
//   unlocking: (params) => servicesStd.post('/asterism/user/unlocking', { params, isLoading: true }),
// };

// // 权限管理
// export const permission = {
//   add: (params) => servicesStd.post('/std/permission/create', { params, isLoading: true }),
//   update: (params) => servicesStd.post('/asterism/permission/update', { params, isLoading: true }),
//   delete: (params) => servicesStd.post('/asterism/permission/delete', { params, isLoading: true }),
//   list: (params) => servicesStd.post('/asterism/permission/list', { params, isLoading: true }),
//   queryOne: (params) => servicesStd.post('/asterism/permission/view', { params, isLoading: true }),
//   assign: (params) => servicesStd.post('/asterism/permission/assign', { params, isLoading: true }),
//   revoke: (params) => servicesStd.post('/asterism/permission/revoke', { params, isLoading: true }),
// };

// // 路径管理
// export const route = {
//   add: (params) => servicesStd.post('/asterism/route/create', { params, isLoading: true }),
//   update: (params) => servicesStd.post('/asterism/route/update', { params, isLoading: true }),
//   delete: (params) => servicesStd.post('/asterism/route/delete', { params, isLoading: true }),
//   list: (params) => servicesStd.post('/asterism/route/list', { params, isLoading: true }),
//   queryOne: (params) => servicesStd.post('/std/route/view', { params, isLoading: true }),
// };

// // 角色管理
// export const role = {
//   add: (params) => servicesStd.post('/asterism/role/create', { params, isLoading: true }),
//   update: (params) => servicesStd.post('/asterism/role/update', { params, isLoading: true }),
//   delete: (params) => servicesStd.post('/asterism/role/delete', { params, isLoading: true }),
//   list: (params) => servicesStd.post('/asterism/role/list', { params, isLoading: true }),
//   queryOne: (params) => servicesStd.post('/asterism/role/view', { params, isLoading: true }),
//   assign: (params) => servicesStd.post('/asterism/role/assign', { params, isLoading: true }),
//   revoke: (params) => servicesStd.post('/asterism/role/revoke', { params, isLoading: true }),
//   all: (params) => servicesStd.post('/asterism/role/all', { params, isLoading: true }),
// };

// // 菜单管理
// export const menu = {
//   add: (params) => servicesStd.post('/asterism/menu/create', { params, isLoading: true }),
//   update: (params) => servicesStd.post('/asterism/menu/update', { params, isLoading: true }),
//   delete: (params) => servicesStd.post('/std/menu/delete', { params, isLoading: true }),
//   list: (params) => servicesStd.post('/std/menu/index', { params, isLoading: true }),
//   assigned: (params) => servicesStd.post('asterism/menu/assigned', { params, isLoading: true }),
//   move: (params) => servicesStd.post('/std/menu/move', { params, isLoading: true }),
//   query: (params) => servicesStd.get('/asterism/menu/assigned', { params }),
// };

// // skin管理
// export const skin = {
//   getInfo: (params) => servicesStd.get('/asterism/theme/info', { withAuth: false, params }),
//   saveInfo: (params) => servicesStd.post('/asterism/theme/info', { params, isLoading: true }),
// };
// // 日志管理
// export const eventLog = {
//   list: (params) => noVerService.post('/log/event-log', { params }),
//   detail: (params) => noVerService.post('/log/event-log-detail', { params }),
// };

// export const email = {
//   setConfig: (params) =>
//     servicesStd.post('/asterism/system-config/email', {
//       params: {
//         email_config: params,
//       },
//     }),
//   getConfig: (params) => servicesStd.get('/asterism/system-config/email', { params }),
//   test: (params) =>
//     servicesStd.post('/asterism/system-config/test-email', {
//       params,
//     }),
// };

// // 操作日志
// export const operationLog = {
//   list: (params) => noVerService.post('/operation-log/list', { params, isLoading: true }),
// };

// // 全量用户
// export const allUser = {
//   list: (params) => servicesStd.post('/asterism/user/all-list', { params, isLoading: true }),
// };

// 系统设置--数据源管理
export const dataSourceManage = {
  list: (params) => servicesSmp.post('/dataSource/page', { params, isLoading: true }),
  add: (params) => servicesSmp.post('/dataSource/add', { params, isLoading: true }),
  update: (params) => servicesSmp.post('/dataSource/update', { params, isLoading: true }),
  delete: (params) => servicesSmp.post('/dataSource/delete', { params, isLoading: true }),
  queryOne: (params) => servicesSmp.post('/dataSource/detail', { params, isLoading: true }),
};
